package com.lipl.base.javase.juc.demo;

import java.util.concurrent.Callable;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @Auther: 15541
 * @Date: 2020/10/24 10:30
 * @Description:
 */
public class Test {

    public static void main(String[] args) {
        new ReentrantLock(); //默认非公平锁
        new ReentrantLock(true); //公平锁

        Thread thread = new Thread();
        try {
            Thread.sleep(10);
            Thread.currentThread();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }
}

